﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InsideDL
{
    public class Section
    {
        public int StartRow = 0;
        public int EndRow = 0;

        public Section(string[] p_rows)
        {
            StartRow = Convert.ToInt16(p_rows[0]);
            EndRow = Convert.ToInt16(p_rows[1]);
        }

        public int GetCaptionRow()
        {
            return this.StartRow - 2;
        }

        /// <summary>
        /// 如果開始和結束相同就不做改月份的事
        /// </summary>
        /// <returns></returns>
        public bool IsCangeCaption()
        {
            return this.StartRow.Equals(this.EndRow) ? true : false;
        }
    }

}
